package com.yue.zheng.controller;


import com.yue.zheng.service.HelloServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Autowired
    private HelloServiceImpl helloService;

    @GetMapping("sayHello")
    public String sayHello(String name) {
        return helloService.sayHello(name);
    }
    @GetMapping("test")
    public String test(){
        return "test";
    }
}
